package com.gdkm.daomain;

import java.util.Date;

public class Blog {
	private int id;// id
	private int num;// 点击次数
	private int praise;// 点赞次数
	private String category;// 分类
	private String title;// 标题
	private String imgurl;// 图片地址
	private String message;// 正文
	private Date createTime;// 创建时间
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getPraise() {
		return praise;
	}
	public void setPraise(int praise) {
		this.praise = praise;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String ctegory) {
		this.category = ctegory;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getImgurl() {
		return imgurl;
	}
	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Blog(int id, int num, int praise, String category, String title, String imgurl, String message,
			Date createTime) {
		super();
		this.id = id;
		this.num = num;
		this.praise = praise;
		this.category = category;
		this.title = title;
		this.imgurl = imgurl;
		this.message = message;
		this.createTime = createTime;
	}
	@Override
	public String toString() {
		return "Blog [id=" + id + ", num=" + num + ", praise=" + praise + ", ctegory=" + category + ", title=" + title
				+ ", imgurl=" + imgurl + ", message=" + message + ", createTime=" + createTime + "]";
	}
	public Blog() {
	}
	
}
